package by.amakarevich.services;

import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.UserAccount;
import by.amakarevich.datamodel.enums.UserRole;

public interface UserAccountService {
	
	UserAccount get(Long id);

	@Transactional
	void saveOrUpdate(UserAccount userAccount);

	@Transactional
	void delete(UserAccount userAccount);

	@Transactional
	void deleteAll();
	
	UserAccount getUserByEmail(String userName);
	
	UserRole getRoles(Long userId);
}
